gtk4.git
15 years agoImplement atom-related vfuncs for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:51:38 +0000 (12:51 -0500)]
Implement atom-related vfuncs for quartz

15 years agoImplement get_keymap vfunc for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:46:46 +0000 (12:46 -0500)]
Implement get_keymap vfunc for quartz

15 years agoImplement create_window_impl vfunc for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:34:40 +0000 (12:34 -0500)]
Implement create_window_impl vfunc for quartz

15 years agoDrop gdk_spawn functions
Matthias Clasen [Fri, 17 Dec 2010 17:31:18 +0000 (12:31 -0500)]
Drop gdk_spawn functions

These have been removed since the implementation was just
a straight wrapper around g_spawn.

15 years agoDrop unimplemented foreign window functions
Matthias Clasen [Fri, 17 Dec 2010 17:30:13 +0000 (12:30 -0500)]
Drop unimplemented foreign window functions

These have been relegated to backend-specific

15 years agoImplement event_data_{copy,free} for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:25:47 +0000 (12:25 -0500)]
Implement event_data_{copy,free} for quartz

15 years agoImplement notify_startup_complete vfunc for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:19:14 +0000 (12:19 -0500)]
Implement notify_startup_complete vfunc for quartz

15 years agoRemove a duplicate doc comment
Matthias Clasen [Fri, 17 Dec 2010 17:15:55 +0000 (12:15 -0500)]
Remove a duplicate doc comment

15 years agoImplement get_next_serial for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:11:10 +0000 (12:11 -0500)]
Implement get_next_serial for quartz

15 years agogdk_display_warp_pointer is in the frontend now
Matthias Clasen [Fri, 17 Dec 2010 17:07:38 +0000 (12:07 -0500)]
gdk_display_warp_pointer is in the frontend now

15 years agoImplment process_updates_recurse vfunc for quartz
Matthias Clasen [Fri, 17 Dec 2010 17:01:54 +0000 (12:01 -0500)]
Implment process_updates_recurse vfunc for quartz

15 years agoImplement has_pending and queue_events vfuncs for quartz
Matthias Clasen [Fri, 17 Dec 2010 16:46:22 +0000 (11:46 -0500)]
Implement has_pending and queue_events vfuncs for quartz

15 years agoDerive GdkDisplayManager for quartz
Matthias Clasen [Fri, 17 Dec 2010 16:38:02 +0000 (11:38 -0500)]
Derive GdkDisplayManager for quartz

15 years agoAdapt quartz device code to new ways
Matthias Clasen [Fri, 17 Dec 2010 16:19:37 +0000 (11:19 -0500)]
Adapt quartz device code to new ways

We will need to rename the Core implementations in X11/Quartz
to not clash, later.

15 years agoAdapt quartz visual code to new ways
Matthias Clasen [Fri, 17 Dec 2010 16:05:53 +0000 (11:05 -0500)]
Adapt quartz visual code to new ways

We may still need a subclass here later, not sure

15 years agoRename _gdk_dnd_init
Matthias Clasen [Fri, 17 Dec 2010 15:53:00 +0000 (10:53 -0500)]
Rename _gdk_dnd_init

15 years agoImplement dnd vtables for quartz
Matthias Clasen [Fri, 17 Dec 2010 15:52:14 +0000 (10:52 -0500)]
Implement dnd vtables for quartz

15 years agoConvert a bunch of visual related calls to use the screen vtable, quartz
Matthias Clasen [Fri, 17 Dec 2010 15:17:04 +0000 (10:17 -0500)]
Convert a bunch of visual related calls to use the screen vtable, quartz

15 years agoConvert all GdkScreen methods to vtable calls, quartz backend
Matthias Clasen [Fri, 17 Dec 2010 14:50:21 +0000 (09:50 -0500)]
Convert all GdkScreen methods to vtable calls, quartz backend

15 years agoDerive GdkKeymap for Quartz
Matthias Clasen [Fri, 17 Dec 2010 14:38:26 +0000 (09:38 -0500)]
Derive GdkKeymap for Quartz

15 years agoMake display method vtable calls, quartz backend
Matthias Clasen [Wed, 22 Dec 2010 02:13:02 +0000 (21:13 -0500)]
Make display method vtable calls, quartz backend

15 years agoConvert all gdk_window methods to vtable calls in the quartz backend
Matthias Clasen [Wed, 22 Dec 2010 02:12:04 +0000 (21:12 -0500)]
Convert all gdk_window methods to vtable calls in the quartz backend

15 years agocontinue to install gdk-$TARGET-3.0.pc
Matthias Clasen [Wed, 22 Dec 2010 16:39:58 +0000 (11:39 -0500)]
continue to install gdk-$TARGET-3.0.pc

15 years agoAdd a section about gdk_spawn to migration guide
Matthias Clasen [Wed, 22 Dec 2010 16:13:31 +0000 (11:13 -0500)]
Add a section about gdk_spawn to migration guide

15 years agoFixed GtkGrid GtkContainerClass->forall() to not use a for loop.
Tristan Van Berkom [Wed, 22 Dec 2010 12:21:44 +0000 (21:21 +0900)]
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.

This loop needs to be safe for removing children in a forall loop.

15 years agoDocument WINDOWING macros
Matthias Clasen [Wed, 22 Dec 2010 06:43:57 +0000 (01:43 -0500)]
Document WINDOWING macros

15 years agoMention GDK_BACKEND in the docs
Matthias Clasen [Wed, 22 Dec 2010 06:32:18 +0000 (01:32 -0500)]
Mention GDK_BACKEND in the docs

15 years agoFix the X backend docs
Matthias Clasen [Wed, 22 Dec 2010 06:31:15 +0000 (01:31 -0500)]
Fix the X backend docs

15 years agoGtkAboutDialog: Be slightly more flexible when listing credits
Matthias Clasen [Wed, 22 Dec 2010 06:03:58 +0000 (01:03 -0500)]
GtkAboutDialog: Be slightly more flexible when listing credits

Make sure we render credits ok that are occurring in the wild,
such as "Contact us at:", "<foo@bar>" or "guy1\nguy2\nguy3"

https://bugzilla.gnome.org/show_bug.cgi?id=637763
https://bugzilla.gnome.org/show_bug.cgi?id=637736

15 years agoShow translators properly in the new about dialog
Matthias Clasen [Wed, 22 Dec 2010 05:31:05 +0000 (00:31 -0500)]
Show translators properly in the new about dialog

translator-credits is a single string, typically with newline-
separated names.

15 years agoUse getters and setters for GtkPrintJob in gtkprintbackendtest.c
Robert Ancell [Wed, 22 Dec 2010 04:36:47 +0000 (15:36 +1100)]
Use getters and setters for GtkPrintJob in gtkprintbackendtest.c

15 years agoFix DSO link issues
Robert Ancell [Wed, 22 Dec 2010 04:01:50 +0000 (15:01 +1100)]
Fix DSO link issues

15 years agoBump version
Matthias Clasen [Wed, 22 Dec 2010 01:17:35 +0000 (20:17 -0500)]
Bump version

15 years agoFix distcheck
Matthias Clasen [Wed, 22 Dec 2010 00:37:18 +0000 (19:37 -0500)]
Fix distcheck

15 years agoFix a blunder in grab handling
Matthias Clasen [Tue, 21 Dec 2010 23:42:30 +0000 (18:42 -0500)]
Fix a blunder in grab handling

This was causing segfaults which would go away when compiled with
debug options.

15 years agoSet a default value for rgba style properties
Matthias Clasen [Tue, 21 Dec 2010 23:17:58 +0000 (18:17 -0500)]
Set a default value for rgba style properties

15 years agoFix a tag mismatch in the docs
Matthias Clasen [Tue, 21 Dec 2010 23:15:43 +0000 (18:15 -0500)]
Fix a tag mismatch in the docs

15 years agoFix inclusion of gdkconfig.h
Mike Gorse [Tue, 21 Dec 2010 23:18:07 +0000 (18:18 -0500)]
Fix inclusion of gdkconfig.h

15 years agoAdd gtkselectionprivate.h to Makefile
Matthias Clasen [Tue, 21 Dec 2010 22:57:40 +0000 (17:57 -0500)]
Add gtkselectionprivate.h to Makefile

15 years agoDrop no-longer-existing header from Makefile
Matthias Clasen [Tue, 21 Dec 2010 22:36:50 +0000 (17:36 -0500)]
Drop no-longer-existing header from Makefile

15 years agoDon't install headers twice
Matthias Clasen [Tue, 21 Dec 2010 21:37:16 +0000 (16:37 -0500)]
Don't install headers twice

15 years agoUpdate NEWS
Matthias Clasen [Tue, 21 Dec 2010 21:25:27 +0000 (16:25 -0500)]
Update NEWS

15 years agoTemporarily disable combo box entry test
Matthias Clasen [Tue, 21 Dec 2010 19:43:17 +0000 (14:43 -0500)]
Temporarily disable combo box entry test

This one got broken by the treeview refactoring, I assume.

15 years agoAdd gdk_disable_multidevice to headers
Matthias Clasen [Tue, 21 Dec 2010 19:32:59 +0000 (14:32 -0500)]
Add gdk_disable_multidevice to headers

15 years agoReturn an appropriate GtkStyle from gtk_rc_get_style_by_paths()
Owen W. Taylor [Mon, 20 Dec 2010 18:48:44 +0000 (13:48 -0500)]
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()

Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().

https://bugzilla.gnome.org/show_bug.cgi?id=637520

15 years agoImplement some more vfuncs in GdkOffscreenWindow
Matthias Clasen [Tue, 21 Dec 2010 19:20:19 +0000 (14:20 -0500)]
Implement some more vfuncs in GdkOffscreenWindow

15 years agoMore include shuffling; keep X extension headers to ourselves
Matthias Clasen [Tue, 21 Dec 2010 19:17:02 +0000 (14:17 -0500)]
More include shuffling; keep X extension headers to ourselves

15 years agoCheck the right library for symbols
Matthias Clasen [Tue, 21 Dec 2010 17:41:29 +0000 (12:41 -0500)]
Check the right library for symbols

15 years agoFix another typo
Matthias Clasen [Tue, 21 Dec 2010 17:32:34 +0000 (12:32 -0500)]
Fix another typo

15 years agoFix a silly typo
Matthias Clasen [Tue, 21 Dec 2010 17:19:03 +0000 (12:19 -0500)]
Fix a silly typo

15 years agoDisable the GtkPlug xi2 hack more thoroughly
Matthias Clasen [Tue, 21 Dec 2010 16:29:18 +0000 (11:29 -0500)]
Disable the GtkPlug xi2 hack more thoroughly

15 years agoDetangle includes for GdkDeviceManager subclasses
Matthias Clasen [Tue, 21 Dec 2010 16:27:27 +0000 (11:27 -0500)]
Detangle includes for GdkDeviceManager subclasses

15 years agoDetangle includes for device subclasses
Matthias Clasen [Tue, 21 Dec 2010 15:37:21 +0000 (10:37 -0500)]
Detangle includes for device subclasses

15 years agoForgotten file
Matthias Clasen [Tue, 21 Dec 2010 14:56:42 +0000 (09:56 -0500)]
Forgotten file

15 years agoRename GdkAppLaunchContextX11 to GdkX11AppLaunchContext
Matthias Clasen [Tue, 21 Dec 2010 07:32:15 +0000 (02:32 -0500)]
Rename GdkAppLaunchContextX11 to GdkX11AppLaunchContext

15 years agoRename GdkDragContextX11 to GdkX11DragContext
Matthias Clasen [Tue, 21 Dec 2010 07:23:30 +0000 (02:23 -0500)]
Rename GdkDragContextX11 to GdkX11DragContext

15 years agoDon't export gdk_x11_cursor_finalize
Matthias Clasen [Tue, 21 Dec 2010 06:43:08 +0000 (01:43 -0500)]
Don't export gdk_x11_cursor_finalize

15 years agoGet abicheck to almost pass again
Matthias Clasen [Tue, 21 Dec 2010 06:41:51 +0000 (01:41 -0500)]
Get abicheck to almost pass again

15 years agoRename x11-specific GdkDevice[Manager] implementations
Matthias Clasen [Tue, 21 Dec 2010 06:32:01 +0000 (01:32 -0500)]
Rename x11-specific GdkDevice[Manager] implementations

Make them all fit in the gdk_x11_ prefix, and make the
get_type functions and standard macros available in headers.

15 years agoRename GdkDevice[Manager]Core to GdkX11Device[Manager]Core
Matthias Clasen [Tue, 21 Dec 2010 04:59:07 +0000 (23:59 -0500)]
Rename GdkDevice[Manager]Core to GdkX11Device[Manager]Core

This is mainly to avoid clash with the classes of the same
name in the quartz backend.

15 years agoRename GdkKeymapX11 to GdkX11Keymap
Matthias Clasen [Tue, 21 Dec 2010 04:32:48 +0000 (23:32 -0500)]
Rename GdkKeymapX11 to GdkX11Keymap

And add a gdkx11keys.h header file.

15 years agoRename GdkDisplayManagerX11 to GdkX11DisplayManager
Matthias Clasen [Tue, 21 Dec 2010 04:14:47 +0000 (23:14 -0500)]
Rename GdkDisplayManagerX11 to GdkX11DisplayManager

And add a gdkx11displaymanager.h header file.

15 years agogdk: Make GdkWindow abstract
Benjamin Otte [Tue, 21 Dec 2010 02:54:15 +0000 (03:54 +0100)]
gdk: Make GdkWindow abstract

This way backend implementors get an error if they don't set
display_class->window_type to their subclass. And that's exactly what we
want.

15 years agogdk: Use G_DEFINE_TYPE for GdkWindow
Benjamin Otte [Tue, 21 Dec 2010 02:39:32 +0000 (03:39 +0100)]
gdk: Use G_DEFINE_TYPE for GdkWindow

15 years agox11: Add a GdkX11Window class for X11 windows
Benjamin Otte [Tue, 21 Dec 2010 02:34:31 +0000 (03:34 +0100)]
x11: Add a GdkX11Window class for X11 windows

15 years agogdk: Allow display subclasses to override the type used for windows
Benjamin Otte [Tue, 21 Dec 2010 02:13:55 +0000 (03:13 +0100)]
gdk: Allow display subclasses to override the type used for windows

We want to have different window types for different displays, so we can
write code like this:

  #if GDK_WINDOWING_X11
    if (GDK_IS_X11_WINDOW (window))
      {
        /* do x11 stuff */
      }
    else
  #endif
  #if GDK_WINDOWING_WAYLAND
    if (GDK_IS_WAYLAND_WINDOW (window))
      {
        /* do wayland stuff */
      }
    else
  #endif
      {
        /* do stuff for unsupported system */
    }

This requires different GdkWindow types and we currently don't have
that, as only the GdkWindowImpl differs. With this method, every backend
defines a custom type that's just a simple subclass of GdkWindow. This
way GdkWindow behaves like all the other types (visuals, screens,
displays) and we can write code like the above.

15 years agogdk: Create windows via _gdk_display_create_window()
Benjamin Otte [Tue, 21 Dec 2010 02:06:59 +0000 (03:06 +0100)]
gdk: Create windows via _gdk_display_create_window()

THe use of this function will become visible in the next commits. But
wrapping g_object_new() is a generally a good idea anyway.

15 years agox11: Export GdkX11Screen
Benjamin Otte [Tue, 21 Dec 2010 01:40:45 +0000 (02:40 +0100)]
x11: Export GdkX11Screen

15 years agox11: Rename GdkScreenX11 to GdkX11Screen
Benjamin Otte [Tue, 21 Dec 2010 01:32:13 +0000 (02:32 +0100)]
x11: Rename GdkScreenX11 to GdkX11Screen

15 years agox11: Export GdkX11Visual
Benjamin Otte [Tue, 21 Dec 2010 01:17:04 +0000 (02:17 +0100)]
x11: Export GdkX11Visual

15 years agox11: Rename GdkVisualX11 to GdkX11Visual
Benjamin Otte [Tue, 21 Dec 2010 01:13:40 +0000 (02:13 +0100)]
x11: Rename GdkVisualX11 to GdkX11Visual

15 years agox11: Have a proper GdkVisualX11Class struct
Benjamin Otte [Tue, 21 Dec 2010 01:09:30 +0000 (02:09 +0100)]
x11: Have a proper GdkVisualX11Class struct

15 years agox11: Export GdkX11Cursor
Benjamin Otte [Tue, 21 Dec 2010 01:05:12 +0000 (02:05 +0100)]
x11: Export GdkX11Cursor

15 years agox11: typedef GdkX11Display to GdkDisplay
Benjamin Otte [Mon, 20 Dec 2010 22:43:04 +0000 (23:43 +0100)]
x11: typedef GdkX11Display to GdkDisplay

This is for compatibility reasons. We want to change APIs that operate
on X11 objects to take the X11 objects as arguments. However, this would
break a lot of APIs and we'd like to avoid this, so we play this little
trick (we will use the same trick for the other X11 objects). Also,
gobject-introspection and other bindings can correctly attach the
functions to the correct types as it is the same scheme that GDK2 used
for pixmaps, windows and drawables.

For GTK 4, we will remove this trick, so apps should properly cast their
objects right now.
Unfortunately, I don't think there is a way to use
GDK_DISABLE_DEPRECATED or similar macros to check for proper type casts
while compiling ensure compatibility with future GDK versions. I'm free
to consider them though.

15 years agox11: Export GdkX11Display
Benjamin Otte [Mon, 20 Dec 2010 18:42:53 +0000 (19:42 +0100)]
x11: Export GdkX11Display

15 years agox11: Rename GdkDisplayX11 to GdkX11Display
Benjamin Otte [Mon, 20 Dec 2010 18:20:10 +0000 (19:20 +0100)]
x11: Rename GdkDisplayX11 to GdkX11Display

Also rename all the macros etc.

15 years agox11: Rename GdkDisplayX11 to GdkX11Display
Benjamin Otte [Mon, 20 Dec 2010 16:14:04 +0000 (17:14 +0100)]
x11: Rename GdkDisplayX11 to GdkX11Display

15 years agoAPI: gdk: GDK_DISPLAY_OBJECT() => GDK_DISPLAY()
Benjamin Otte [Mon, 20 Dec 2010 16:11:00 +0000 (17:11 +0100)]
API: gdk: GDK_DISPLAY_OBJECT() => GDK_DISPLAY()

GDK_DISPLAY_OBJECT is now deprecated. No need to keep failures from
gtk1 around.

15 years agox11: Move remaining APIs into gdkx11utils.h
Benjamin Otte [Mon, 20 Dec 2010 14:55:16 +0000 (15:55 +0100)]
x11: Move remaining APIs into gdkx11utils.h

Now gdkx.h is a clean header equivalent to gdk.h.

15 years agox11: Move atom API into gdkx11property.h
Benjamin Otte [Mon, 20 Dec 2010 14:52:49 +0000 (15:52 +0100)]
x11: Move atom API into gdkx11property.h

15 years agox11: Move selection-specific API into gdkx11selection.h
Benjamin Otte [Mon, 20 Dec 2010 14:49:17 +0000 (15:49 +0100)]
x11: Move selection-specific API into gdkx11selection.h

15 years agox11: Move display-specific APIs into gdkx11display.h
Benjamin Otte [Mon, 20 Dec 2010 14:42:37 +0000 (15:42 +0100)]
x11: Move display-specific APIs into gdkx11display.h

15 years agox11: Move screen-specific API into gdkx11screen.h
Benjamin Otte [Mon, 20 Dec 2010 14:35:05 +0000 (15:35 +0100)]
x11: Move screen-specific API into gdkx11screen.h

15 years agox11: Move visual-specific API into gdkx11visual.h
Benjamin Otte [Mon, 20 Dec 2010 14:29:17 +0000 (15:29 +0100)]
x11: Move visual-specific API into gdkx11visual.h

15 years agox11: Move cursor API into gdkx11cursor.h
Benjamin Otte [Mon, 20 Dec 2010 14:25:50 +0000 (15:25 +0100)]
x11: Move cursor API into gdkx11cursor.h

15 years agox11: Split out public window API into gdkx11window.h
Benjamin Otte [Mon, 20 Dec 2010 14:22:50 +0000 (15:22 +0100)]
x11: Split out public window API into gdkx11window.h

15 years agoAPI: gdk: gdk_display_warp_device() => gdk_device_warp()
Benjamin Otte [Mon, 20 Dec 2010 14:05:47 +0000 (15:05 +0100)]
API: gdk: gdk_display_warp_device() => gdk_device_warp()

warping devices has nothing to do with displays, so putting it there
seems weird.

15 years agogdk: Move gdk_cursor_get_image() to the base class
Benjamin Otte [Mon, 20 Dec 2010 13:07:11 +0000 (14:07 +0100)]
gdk: Move gdk_cursor_get_image() to the base class

.. and make it call a vfunc on the cursor

15 years agox11: Remove duplicated docs
Benjamin Otte [Mon, 20 Dec 2010 12:57:48 +0000 (13:57 +0100)]
x11: Remove duplicated docs

They're in gdk/gdkdisplay.c now.

15 years agox11: Don't keep the display around anymore
Benjamin Otte [Mon, 20 Dec 2010 12:55:46 +0000 (13:55 +0100)]
x11: Don't keep the display around anymore

Use gdk_cursor_get_display() instead.

15 years agogdk: Move gdk_cursor_get_display() out of the backends
Benjamin Otte [Mon, 20 Dec 2010 12:47:35 +0000 (13:47 +0100)]
gdk: Move gdk_cursor_get_display() out of the backends

Now that we store the display inside the cursor, that change is obvious.

15 years agogdk: Make display a property of GdkCursor
Benjamin Otte [Mon, 20 Dec 2010 12:45:31 +0000 (13:45 +0100)]
gdk: Make display a property of GdkCursor

15 years agogdk: Make cursor-type a property of the cursor
Benjamin Otte [Mon, 20 Dec 2010 12:35:39 +0000 (13:35 +0100)]
gdk: Make cursor-type a property of the cursor

15 years agoAPI: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
Benjamin Otte [Mon, 20 Dec 2010 02:27:05 +0000 (03:27 +0100)]
API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()

Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.

15 years agotestgtk: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:13:47 +0000 (03:13 +0100)]
testgtk: Use g_object_unref instead of gdk_cursor_unref

15 years agogtk-demo: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:59:58 +0000 (03:59 +0100)]
gtk-demo: Use g_object_unref instead of gdk_cursor_unref

15 years agogtk: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:14:38 +0000 (03:14 +0100)]
gtk: Use g_object_unref instead of gdk_cursor_unref

15 years agogdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
Benjamin Otte [Mon, 20 Dec 2010 02:23:44 +0000 (03:23 +0100)]
gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref

15 years agox11: Use g_object_(un)ref instead of gdk_cursor_(un)ref
Benjamin Otte [Mon, 20 Dec 2010 02:12:33 +0000 (03:12 +0100)]
x11: Use g_object_(un)ref instead of gdk_cursor_(un)ref

15 years agogdk: Make GdkCursor a GObject
Benjamin Otte [Mon, 20 Dec 2010 02:09:31 +0000 (03:09 +0100)]
gdk: Make GdkCursor a GObject

Also port the X11 implementation. Win32 and Quartz need to be ported
still.